package com.erp.dto;

import com.erp.domain.TForum;
import com.erp.mapping.Status;

@SuppressWarnings("serial")
public class Forum implements java.io.Serializable {
	private Integer id;
	private String name;
	private Integer orderNumber;
	private String description;
	private Integer topicCount = 0; // 主题数默认0
	private Status status = Status.STATUS_NORMAL;// 板块状态，默认正常状态

	public Forum() {
	}

	public Forum(TForum tForum) {
		this.id = tForum.getId();
		this.name = tForum.getName();
		this.orderNumber = tForum.getOrderNumber();
		this.description = tForum.getDescription();
		this.topicCount = tForum.getTopicCount();
		this.status = tForum.getStatus();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(Integer orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getTopicCount() {
		return topicCount;
	}

	public void setTopicCount(Integer topicCount) {
		this.topicCount = topicCount;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

}
